home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2002 July
/
07_02.iso
/
software
/
xq-xsetup
/
files
/
setup.exe
/
{app}
/
plugins
/
XQ Windows Key 1.xpl
< prev
next >
Wrap
Text File
|
2001-11-27
|
1KB
|
48 lines
"FILE"="Xteq Systems X-Setup Plugin 6.0"
"TYPE"="6"
"COUNT"="1"
"UIPATH 1"="Hardware\Keyboard"
"NAME"="Enable Windows Keys"
"LANGUAGE"="VBScript"
"TEXT 1"="Enable Windows Keys"
"DESCRIPTION 1"="If you have a keyboard with the two Windows keys, you can use these to access common Windows functions more quickly."
"DESCRIPTION 2"="If you want, you can disable these keys, by clearing the box above."
"COMMENT 1"="Thanks to CptSiskoX for the plug-in suggestion."
"VERSION"="1.13"
"AUTHOR"="Xteq Systems (Neil R. Turner and CptSiskoX)"
"COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved."
"CONTACTURL"="http://www.xteq.com/"
sP="HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoWinKeys"
SUB Plugin_Initialize
s=RegValueExists(sP)
if s=true then
f=RegReadValue(sP)
if f=0 then
Call SetUIElement(1,true)
else
Call SetUIElement(1,false)
end if
else
Call SetUIElement(1,true)
end if
END SUB
SUB Plugin_Apply(ElementIndex,ElementSubIndex)
h=GetUIElement(1)
if h=true then
g=RegValueExists(sP)
if g=true then
Call RegWriteValue(sP,0,2)
end if
else
Call RegWriteValue(sP,1,2)
end if
Call Restart()
END SUB
SUB Plugin_Terminate
END SUB